import Mock from "mockjs";
import homeApi from "./mockData/home";
import userApi from "./mockData/user";
import permissionApi from "./mockData/permissionApi";
// 1、拦截的路径、拦截的方法、拦截的返回值
Mock.mock("/api/home/getTable", "get", homeApi.getTable);
Mock.mock("/api/home/getCountData", "get", homeApi.getCountData);
Mock.mock("/api/home/getChartData", "get", homeApi.getChartData);
Mock.mock("/api/home/getUserData", "post", userApi.getUserList);
Mock.mock(RegExp('^/api/user/deleteUser(\\?.*)?$'), 'get', userApi.deleteUser);
Mock.mock(RegExp('^/api/user/addUser(\\?.*)?$'), 'post', userApi.addUser);
Mock.mock(RegExp('^/api/user/updateUser(\\?.*)?$'), 'post', userApi.updateUser);
Mock.mock(RegExp('^/api/permission/getMenu(\\?.*)?$'), "post", permissionApi.getMenu);
